//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.aaa.stat.controller;


import com.aaa.stat.service.SortService;
import com.aaa.stat.vo.SortVo;
import com.aaa.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api("/stat/sort")
@RestController
@RequestMapping({"stat/sort"})
public class SortController {
    @Autowired
    private SortService sortService;

    public SortController() {
    }

    @ApiOperation(
            value = "",
            notes = "",
            httpMethod = "GET"
    )
    @GetMapping({"/getSortAll"})
    public Result<List<SortVo>> getSortAll() {
        return this.sortService.findGoodsBySort();
    }
}
